using System;
using System.Collections.Generic;
using System.Text;

namespace WCSFContrib.ECommerceCatalog.BusinessEntities
{
    public class Category
    {
        private int categoryId;

        public int CategoryId
        {
            get { return categoryId; }
            set { categoryId = value; }
        }

        private string code;

        public string Code
        {
            get { return code; }
            set { code = value; }
        }

        private string name;

        public string Name
        {
            get { return name; }
            set { name = value; }
        }

        private Category parentCategory;

        public Category ParentCategory
        {
            get { return parentCategory; }
            set { parentCategory = value; }
        }

        public Category()
        {
        }

        public Category(int categoryId, string code, string name, Category parentCategory)
        {
            this.categoryId = categoryId;
            this.code = code;
            this.name = name;
            this.parentCategory = parentCategory;
        }
    }
}
